package com.assignwork.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.mp.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.math.BigDecimal;

/**
 * StartedCabin
 */
@Data
@TableName("started_cabin")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "StartedCabin对象", description = "作业舱")
public class StartedCabin extends BaseEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String cabinAndHatch;

    /** 舱名key */
    @ApiModelProperty(value = "舱名key")
    private String cabin;

    private String hatch;

    /** 作业线ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "作业线ID")
    private Long lineId;
    
    /** 门机序号 */
    @ApiModelProperty(value = "门机序号")
    private String portalCraneNo;

    /** 门机数量 */
    private Integer portalCraneCount;
    /** 辅助机械数量 */
    private Integer accessoryMachineryCount;
    /** 船机数量 */
    private Integer shipMachineryCount;

    /** 计划ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "计划ID")
    private Long planId;
    
    /** 是否为实际作业 */
    @ApiModelProperty(value = "是否为实际作业")
    private Integer isReal;
    
    /** 总吨 */
    @ApiModelProperty(value = "总吨")
    private BigDecimal totalTon;

    /** 余吨 */
    @ApiModelProperty(value = "余吨")
    private BigDecimal remanentTon;
    
    /** 理货吨 */
    @ApiModelProperty(value = "理货吨")
    private BigDecimal tallyTon;
    
    /** 最终吨 */
    @ApiModelProperty(value = "最终吨")
    private BigDecimal settlementTon;
    
    /** 班次吨 */
    @ApiModelProperty(value = "班次吨")
    private BigDecimal shiftTon;
    
    /** 计划吨 */
    @ApiModelProperty(value = "计划吨")
    private BigDecimal planTon;

    private Integer cabinOrder;

    private String groupFg;
    
}